package
import com.docu.common.Action
import com.docu.common.Message
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component

@Component("delete${className}Action")
class Delete${className}Action extends Action {

  @Autowired
  ${className}Service ${propertyName}Service

   public Object preCondition(Object params, Object object) {
    //not implement
    return null
  }

   public Object postCondition(Object params, Object object) {
    //not implement
    return null
  }

   public Object execute(Object params, Object object) {
    try {
      return ${propertyName}Service.delete(object)
    }
    catch (Exception ex) {
    log.error(ex.message)
      return new Integer(0)
    }
  }

}